<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/new_file.css"/>
		<script type="text/javascript" src="index.js" ></script>
	</head>
	<body>
		<div class="ax">
			<div class="ac">
				<h4>管理中心</h4>
			</div>
			<div class="av">
				<input  id="zcc" placeholder="请输入" ng-model="username">
				<button class="ab" ng-click="sou()">搜索</button>
			</div>
		</div>
		<div class="zx">
			<button id="ww" ng-click="sbb()">添加信息</button>
			<button id="ww" ng-click="delAll()">批量删除</button>
		</div>
		<div class="an">
			<table cellspacing="0">
				<tr>
					<td class="quan"><input type="checkbox" ng-click="checkAll()" ng-checked="checks">全选</td>
					<td>编号</td>
					<td>姓名</td>
					<td>年龄&nbsp;|<a href="javascript:;" ng-click="didi()">&nbsp;排序</a></td>
					<td>性别</td>
					<td>操作</td>
				</tr>
				<tr ng-repeat="user in list">
					<td class="quan"><input type="checkbox" ng-checked="checks" value="{{user._id}}"></td>
					<td>{{$index+1}}</td>
					<td><a ng-href="#/view/{{$index}}">{{user.username}}</a></td>
					<td>{{user.userage}}</td>
					<td>{{user.usersex}}</td>
					<td>
						<a href="javascript:;" ng-click="del(user._id)">删除</a>
					    <a href="javascript:;" ng-click="sbbb(user._id,$index)">修改</a>
					</td>
				</tr>
		</table>
		<food id="ffy">
         <span>总共{{count}}条记录</span>
         <span>{{page}}/{{total}}</span>
         <a class="fy" href="javascript:;" ng-click="replace(1)">首页</a>
         <a class="fy" href="javascript:;" ng-click="replace(page-1)">上一页</a>
         <a class="fy" href="javascript:;" ng-click="replace(page+1)">下一页</a>
         <a class="fy" href="javascript:;" ng-click="replace(total)">尾页</a>
        </food>
		<div>
			姓名：<input type="text" ng-model="name"><br>
			年龄：<input type="number" ng-model="age"><br>
				  <input type="radio"  ng-model="sex" value="男">男
				  <input type="radio"  ng-model="sex" value="女">女<br>
				  <input type="hidden" ng-model="id">
		</div>
	</body>
</html>
